<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
<script>
    const baiduWin = window.open("https://www.baidu.com/");
    setInterval(() => {
        baiduWin.postMessage("jrd", "https://www.baidu.com/");
    }, 300)
    // 百度控制台执行如下代码后即可接收到当前页面发送的信息
    // window.addEventListener("message", (e) => {
    //     console.log(e.data);
    // })
</script>
</body>
</html>